<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Button test</title>
<link rel="stylesheet" type="text/css" href="popbox.css" />

<style type="text/css">
.suggest-box {
	border: 1px solid black;
	padding: 8px;
	
	background-color: #ccffe5;
	color: black;

	width: 300px;
	height: 100px;

	overflow: auto;
}

.suggest-box .row {

}

.suggest-box .row_hover {
	background-color: black;
	color: white;

}
</style>

<script type="text/javascript" src="../../os3jslib/liwe.js"></script>
<script type="text/javascript" src="../../os3jslib/dom.js"></script>
<script type="text/javascript" src="../../os3jslib/string_enh.js"></script>
<script type="text/javascript" src="../../os3jslib/event.js"></script>
<script type="text/javascript" src="../../os3jslib/utils.js"></script>
<script type="text/javascript" src="../wwl.js"></script>
<script type="text/javascript" src="../popbox/popbox.js"></script>
<script type="text/javascript" src="suggest.js"></script>

<script type="text/javascript">
function init ()
{
	var as = new AutoSuggest ( 'suggest1' );

	as.use_cache = true;
	as.multi_values = false;
}

function do_all ()
{
	var pop = new WWL.popbox ( 'prova' );

	pop.set_parent ( $( "p1" ), "D" );
	pop.set_delta ( 0, 0 );
	pop.show ();
}

var _is_disabled = false;

function set_disabled ()
{
	var b = WWL.button.get_instance ( 'prova' );

	_is_disabled = ! _is_disabled;

	b.disable ( _is_disabled );
};

function hide_show ()
{
	var pop = WWL.popbox.get_instance ( "prova" );

	if ( pop.is_hidden () )
		pop.show ();
	else
		pop.hide ();
}


</script>
</head>
<body onload="init()">

<input type="text" id="suggest1" />
<br />


</body>
</html>
